package com.set;

import java.util.AbstractSet;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class abstractSet2HashSet {

	public static void main(String[] args) { 
		AbstractSet set = new HashSet();
		set.add("1");
		set.add("2");
		set.add("4");
		set.add("3");
		Iterator i = set.iterator();
		while (i.hasNext()) {
			System.out.print(i.next() + ",");
		}
	 
	}

}
